package com.stone.business.cllyjl.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 
 * 材料库存单
 * 
 */
@Entity
@Table(name = "TAB_CLKC_MX")
public class TClkcmx implements java.io.Serializable {

	private Long id;
			
	private Long parentid=0L;
	private Long bzid;	
	private String cllb;  //材料类别
	private String  clmc;	//材料名称
	private String  cldw;	//材料单位(个,套,米,副)
	private String  clxh;	//材料型号
	private String  ckmc;	//仓库名称
	private Integer lysl = 0;//领用数量
	private String  dantype; //材料类型  1出库单, 2入库单，
	private Date ccdate;     //出厂日期
	private String  sccj;	//生产厂家
	
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_CLKC_MX")
	@SequenceGenerator(name="SEQ_CLKC_MX",allocationSize=1, sequenceName="SEQ_CLKC_MX")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getParentid() {
		return parentid;
	}
	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}
	public Long getBzid() {
		return bzid;
	}
	public void setBzid(Long bzid) {
		this.bzid = bzid;
	}
	public String getClmc() {
		return clmc;
	}
	public void setClmc(String clmc) {
		this.clmc = clmc;
	}
	public String getCldw() {
		if(this.cldw==null){
			this.cldw="";
		}
		return cldw;
	}
	public void setCldw(String cldw) {
		this.cldw = cldw;
	}
	public String getClxh() {
		if(this.clxh==null){
			this.clxh="";
		}
		return clxh;
	}
	public void setClxh(String clxh) {
		this.clxh = clxh;
	}
	public String getCkmc() {
		return ckmc;
	}
	public void setCkmc(String ckmc) {
		this.ckmc = ckmc;
	}
	public Integer getLysl() {
		return lysl;
	}
	public void setLysl(Integer lysl) {
		this.lysl = lysl;
	}
	public String getDantype() {
		return dantype;
	}
	public void setDantype(String dantype) {
		this.dantype = dantype;
	}
	public Date getCcdate() {
		return ccdate;
	}
	public void setCcdate(Date ccdate) {
		this.ccdate = ccdate;
	}
	public String getSccj() {
		if(this.sccj==null){
			this.sccj="";
		}
		return sccj;
	}
	public void setSccj(String sccj) {
		this.sccj = sccj;
	}
	/**
	 * @return the cllb
	 */
	public String getCllb() {
		return cllb;
	}
	/**
	 * @param cllb the cllb to set
	 */
	public void setCllb(String cllb) {
		this.cllb = cllb;
	}
	
}